package cn.rkylin.oms.refund.vo;

import java.util.Date;

import cn.rkylin.oms.refund.domain.EcRefundItem;

public class EcRefundItemVO extends EcRefundItem {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1159284127566765441L;
	//异常描述
	private String errDesc; 
	//平台状态
	private String refundStatus;
	//系统状态
	private String erpStatus;
	//买家是否退货
	private String hasGoodReturn;
	//退款原因
	private String refundReason;
	//退款阶段
	private String refundPhase;
	//物流单号
	private String lgstNo;
	//排序
	private String orderBy;
	//项目名称
	private String prjName;
	//店铺
	private String shopName;
	//客户ID
	private String buyerNick;
	//退款单号
	private String ecRefundCode;
	//交易单号
	private String ecTradeCode;
	//订单状态
	private String ecTradeStus;
	//退款单创建时间
	private Date refundCreateTime;
	//退款单超时时间
	private Date refundTimeout;
	//退款时间
	private Date refundTime;
	
	private String shopType;
	
	private String splitflg;
	
	private Date closeTime;
	
	public Date getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(Date closeTime) {
        this.closeTime = closeTime;
    }

    public String getSplitShopId() {
	    if ("y".equals(splitflg)){
	        return super.getSplitShopId();    
	    } else {
	        return "";
	    }
    }
	
	public String getSplitShopName() {
	    if ("y".equals(splitflg)){
            return super.getSplitShopName();    
        } else {
            return "";
        }
    }
	public String getSplitflg() {
        return splitflg;
    }
    public void setSplitflg(String splitflg) {
        this.splitflg = splitflg;
    }
    public String getShopType() {
		return shopType;
	}
	public void setShopType(String shopType) {
		this.shopType = shopType;
	}
	public String getPrjName() {
		return prjName;
	}
	public void setPrjName(String prjName) {
		this.prjName = prjName;
	}
	public String getShopName() {
		return shopName;
	}
	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
	public String getBuyerNick() {
		return buyerNick;
	}
	public void setBuyerNick(String buyerNick) {
		this.buyerNick = buyerNick;
	}
	public String getEcRefundCode() {
		return ecRefundCode;
	}
	public void setEcRefundCode(String ecRefundCode) {
		this.ecRefundCode = ecRefundCode;
	}
	public String getEcTradeCode() {
		return ecTradeCode;
	}
	public void setEcTradeCode(String ecTradeCode) {
		this.ecTradeCode = ecTradeCode;
	}
	public String getEcTradeStus() {
	    if ("EC_WAIT_BUYER_PAY".equals(this.ecTradeStus)){
            return "等待买家付款";
        } else if ("EC_WAIT_SELLER_SEND".equals(this.ecTradeStus)){
            return "等待卖家发货";
        } else if ("EC_TRADE_PARTIALLY_SEND".equals(this.ecTradeStus)){
            return "交易部分发货";
        } else if ("EC_TRADE_ALL_SEND".equals(this.ecTradeStus)){
            return "交易全部发货";
        } else if ("EC_TRADE_FINISHED".equals(this.ecTradeStus)){
            return "交易成功";
        } else if ("EC_TRADE_CANCELED".equals(this.ecTradeStus)){
            return "交易取消";
        } else {
            return "";
        }
	}
	public void setEcTradeStus(String ecTradeStus) {
		this.ecTradeStus = ecTradeStus;
	}
	public Date getRefundCreateTime() {
		return refundCreateTime;
	}
	public void setRefundCreateTime(Date refundCreateTime) {
		this.refundCreateTime = refundCreateTime;
	}
	public Date getRefundTimeout() {
		return refundTimeout;
	}
	public void setRefundTimeout(Date refundTimeout) {
		this.refundTimeout = refundTimeout;
	}
	public Date getRefundTime() {
		return refundTime;
	}
	public void setRefundTime(Date refundTime) {
		this.refundTime = refundTime;
	}
	public String getOrderBy() {
		return orderBy;
	}
	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
	public String getLgstNo() {
		return lgstNo;
	}
	public void setLgstNo(String lgstNo) {
		this.lgstNo = lgstNo;
	}
	public String getRefundPhase() {
		if ("onsale".equals(this.refundPhase)){
			return "售中退款";	
		} else {
			return "售后退款";
		}
	}
	public void setRefundPhase(String refundPhase) {
		this.refundPhase = refundPhase;
	}
	public String getRefundReason() {
		return refundReason;
	}
	public void setRefundReason(String refundReason) {
		this.refundReason = refundReason;
	}
	public String getHasGoodReturn() {
		if ("y".equals(this.hasGoodReturn)){
			hasGoodReturn = "退货";
		} else {
			hasGoodReturn = "不退货";
		}
		return hasGoodReturn;
	}
	public void setHasGoodReturn(String hasGoodReturn) {
		this.hasGoodReturn = hasGoodReturn;
	}
	
	public String getErpStatus() {
		return erpStatus;
	}
	public void setErpStatus(String erpStatus) {
		this.erpStatus = erpStatus;
	}
	public String getRefundStatus() {
		return FinalValueMap.REFUND_STATUS.get(refundStatus);
	}
	public void setRefundStatus(String refundStatus) {
		this.refundStatus = refundStatus;
	}
	public String getErrDesc() {
		return errDesc;
	}
	public void setErrDesc(String errDesc) {
		this.errDesc = errDesc;
	}
	
}
